﻿using System;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
using System.Xml.Linq;
using System.Xml;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Windows.Media;
using Styx;
using FTW;
using Styx.Common;
using Styx.Helpers;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using System.Text.RegularExpressions;


namespace FTW
{
    public class FTWConfig : Form
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        public FTWConfig()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.btnInking = new System.Windows.Forms.CheckBox();
            this.btnSave = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnInking
            // 
            this.btnInking.AutoSize = true;
            this.btnInking.Checked = true;
            this.btnInking.CheckState = System.Windows.Forms.CheckState.Checked;
            this.btnInking.Location = new System.Drawing.Point(15, 16);
            this.btnInking.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.btnInking.Name = "btnInking";
            this.btnInking.Size = new System.Drawing.Size(293, 24);
            this.btnInking.TabIndex = 1;
            this.btnInking.Text = "Use Scroll Lock to control movement";
            this.btnInking.UseVisualStyleBackColor = true;
            // 
            // btnSave
            // 
            this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnSave.Location = new System.Drawing.Point(296, 61);
            this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnSave.Name = "btnSave";
            this.btnSave.Size = new System.Drawing.Size(84, 32);
            this.btnSave.TabIndex = 2;
            this.btnSave.Text = "Save";
            this.btnSave.UseVisualStyleBackColor = true;
            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
            // 
            // FTWConfig
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(393, 109);
            this.Controls.Add(this.btnSave);
            this.Controls.Add(this.btnInking);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FTWConfig";
            this.ShowIcon = false;
            this.Text = "FightThisWay by Kamilche";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private CheckBox btnInking;
        private Button btnSave;

        private void btnSave_Click(object sender, EventArgs e)
        {
            Logging.Write(Colors.LightGreen, "FTW Settings Saved");
            FTW.FightThisWay.UseScrollLock = this.btnInking.Checked;
            Close();
        }
    }

}






